﻿using Idte.Application.Core;
using Idte.Application.Core.Context;
using Idte.Application.Core.Flow;
using Idte.Common.Process;
using StructureMap;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Idte.Application.Main.Controllers
{
    public class ApplicationController : Controller
    {
        protected IApplicationService appService = ObjectFactory.GetInstance<IApplicationService>();
        protected WebContext webContext = null;
        public ApplicationController()
        {
            ViewBag.ApplicationModel = appService.GetModel();
            //appService.Engine = new WebFlow(this) as IExecutionEngine;
            //webContext = new WebContext(this);
        }

        //public ActionResult Index()
        //{
        //    webContext.Action = "Index";
        //    //appService.Engine.Run(webContext);
        //    IApplicationModel model = appService.GetModel();
        //    return View(model);
        //}
	}
}